<?php

class Ciudad extends MY_Model {

 
    function Ciudad()
    {
        // Call the Model constructor
        parent::MY_Model();
	
	$this->nombreTabla = "ciudad";
	$this->idT1= "idCiudad";
	$this->nombreCampo="nombre";

		$this->campos[] = array("realname" => "nombre",
					"clase" => "text",
					"label" => "Ciudad",
					"rules" => "required|alpha_numeric_space|min_length[3]|max_length[45]");
		
		$this->campos[] = array("realname" => "provincia",
					"clase" => "text",
					"label" => "Provincia",
					"rules" => "required|alpha_numeric_space|min_length[3]|max_length[45]");
		
		$this->campos[] = array("realname" => "pais",
					"clase" => "text",
					"label" => "Pais",
					"rules" => "required|alpha_numeric_space|min_length[3]|max_length[45]");

		// Nombre de los modelos que son hijos   nombremodelo=>label
		 $this->hijos = array('zona'=>'Zona');
    }
     

 
}


?>
